﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace executeCommands
{
    
     public struct state
    {
        public string fileName;
        public string comPort;
        public byte modbusId;
        public int baudSpeed;
    }
    
    public class DataStorage
    {
        //public static state portSettings;
   
        public DataStorage()
        {
            command = commandEnum.read;
            RegisterName = string.Empty; ;
            RegisterNumber = string.Empty; ;
            Value = string.Empty; ;
            success = true;
            errCode = string.Empty;
            comments = string.Empty;
        }

        public enum commandEnum { read,write };

        public commandEnum command { set; get; }
        public string RegisterName { set; get; }
        public string RegisterNumber { set; get; }
        public string Value { set; get; }
        public bool success { set; get; }
        public string errCode { set; get; }
        public string comments { set; get; }
    }
}
